/*
 * @Author: kenan
 * @Date: 2022-09-19 10:01:04
 * @LastEditors: Jason Chen
 * @LastEditTime: 2022-12-05 16:05:52
 * @FilePath: /changeDbPassword/web/src/api/custom.js
 * @Description: 
 * 
 * Copyright (c) 2022 by kenanlu@leansoftx.com, All Rights Reserved. 
 */
import service from '@/utils/request'

// @Tags Database
// @Summary Get databases
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /db/getList [get]
export const getList = () => {
  return service({
    url: '/db/getList',
    method: 'get'
  })
}

// @Tags Database
// @Summary Update database password
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /db/getList [get]
export const changePassword = () => {
  return service({
    url: '/db/changePassword',
    method: 'post'
  })
}

